package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Author：豆浆
 * @name :UserMapper
 * @Date：2024/5/28 17:51
 */
@Mapper
public interface UserMapper {
    @Select("select * from user where openid=#{openid}")
    User getByOpenid(String openid);


    void insert(User user);

    @Select("select * from user where id=#{id}")
    User getById(Long userId);
}
